import request from '@/utils/request'

//获取所有菜单列表
export function getMenuData(data) {
	return request({
		url: '/pc/system/pc_menu/5_find_all',
		method: 'post',
		formData:data
	})
}

//新增菜单
export function newAddMenu(data){
	return request({
		url:"/pc/system/pc_menu/1_insert",
		method:'post',
		json:data
	})
}

//修改菜单
export function updateMenu(data){
	return request({
		url:"/pc/system/pc_menu/2_update",
		method:'post',
		json:data
	})
}

//删除菜单
export function deleteData(data){
	return request({
		url:"/pc/system/pc_menu/3_delete_by_id",
		method:'post',
		formData:data
	})
}

//根据ID查详情
export function detailByID(data){
	return request({
		url:"/pc/system/pc_menu/4_find_by_id",
		method:'post',
		formData:data
	})
}

//菜单标记常用
export function tagCommonType(data){
	return request({
		url:"/pc/system/pc_menu/11_home_show",
		method:'post',
		formData:data
	})
}